<template>
  <div class="showactivity">
    <Zothertop topname="精选文章"></Zothertop>
    <div class="maincon">
      <div class="activecon clearfix" v-for="(item,index) in data" :key="index">
        <div class="activecon-top clearfix">
          <img :src="item.portrait" height="80" width="80">
          <span>{{item.username}}</span>
          <button type="button" class="btn">关注ta</button>
        </div>
        <div class="activecon-con">
        <router-link to="/articlepage">
          <img :src="item.img"/>
          </router-link>
        </div>
      </div>
      <!-- <div class="activecon clearfix">
        <div class="activecon-top clearfix">
          <img src="../../../../images/IMG_shipingbofang_3.png" height="80" width="80">
          <span>小屋</span>
          <button type="button" class="btn">关注ta</button>
        </div>
        <div class="activecon-con">
          <img src="../../../../images/IMG_jingxuanwenzhang_4.png">
        </div>
      </div> -->
    </div> 
    <div class="bg"></div>
  </div>
</template>
<script>
import Zothertop from "../../../../components/zothertop.vue"
export default {
  name:'showactivity',
  data(){
      return{
        data:[]
      }
  },

  components:{
    Zothertop
  },
  created(){
    this.$http.get(this.$store.state.host+'/love/showactivity')
    .then(res=>{
      this.data = res.data.data
    })
  }
}
</script>
<style lang="less" scoped>
 body{
    background-color: #fafafa;
    color:#808080;
  }
  .showactivity{
    background-color: #fafafa;
  }
  .maincon{
    float: left;
    margin: 20/75rem 20/75rem;
  }  
  .bg{
    height: 188/75rem;
    background: #ff406f;
  }
  .activecon{
    background-color: #fff;
    padding: 30/75rem 20/75rem 32/75rem 20/75rem;
    box-shadow: 2/75rem 2/75rem 9/75rem rgba(0,0,0,0.1);
    border-radius: 10/75rem;
    margin-top: 40/75rem;
    position: relative;
  }
  .activecon-top img{
    position:absolute;
    top:-22/75rem;
    left:20/75rem;
  }
  .activecon-top span{
    font-size: 28/75rem;
    margin-left: 112/75rem;
    float: left;
  }
  .activecon-top .btn{
    background-color: #fff;
    font-size: 18/75rem;
    border: 1px solid #808080;
    width: 93/75rem;
    height:32/75rem;
    line-height:30/75rem;
    border-radius:32/75rem;
    float: right;
    margin-right: 7/75rem;
  }
  .activecon-con{
    height: 352/75rem;
    margin-bottom: 38/75rem;
  }
  .activecon-con img{
    margin-top: 40/75rem;
    height: 352/75rem;
  }





</style>
